package com.foreknow.demo6;

/**
 * 方法的参数和返回值类型为自定义类类型在实际项目中的使用
 */
public class ManagerApplication {

    //添加员工信息
    public boolean staff(Employee employee){
        employee.getDept();
        employee.getName();
        employee.getSalary();

        System.out.println(employee.getDept());

        return true;
    }

    //登录
    public  Employee getQuery(String username,String password ){
        Employee employee = new Employee();
        employee.getDept();
        employee.getName();
        employee.setName(username);
        username="111";
        return employee;

    }
    public static void main(String[] args) {
        ManagerApplication managerApplication =new ManagerApplication();
        Employee employee = new Employee();
        employee.setDept("111");

        managerApplication.staff(employee);

        Employee e =managerApplication.getQuery("1","1");
        System.out.println(managerApplication.getQuery("1","1"));
        System.out.println(e.getName());
    }
}
